package com.android.inestpin.model.group;

import com.google.gson.Gson;
import com.android.inestpin.utils.okhttp3.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/6/16.
 */

public abstract  class ThematicAGoodsDataCallback extends Callback<ThematicAGoodsData> {

    @Override
    public ThematicAGoodsData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();

        ThematicAGoodsData thematicAGoodsData = new Gson().fromJson(string, ThematicAGoodsData.class);
        return thematicAGoodsData;
    }
}
